﻿<%@ Page Language="C#" MasterPageFile="~/U_masterP.master" AutoEventWireup="true"
    CodeFile="inboxlist.aspx.cs" Inherits="inboxlist" %>

<%@ Register Src="uc_main/menu_canhan.ascx" TagName="menu_canhan" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style>
        #content_left2
        {
            width: 100%;
            margin: 0px 0px;
            float: left;
            position: relative;
            min-height: 700px;
        }
    </style>
    <div id="content_top">
        <%--<asp:CheckBox ID="CheckBox1" runat="server"/>--%>
        <div id="kep">
            <a href="#">Trang cá nhân</a></div>
        <div id="tags">
            <div id="result">
            </div>
            <% if (Session["KhachHang"] != null)
               { %>
            <div id="Iwill">
                Tôi sẽ
                <asp:TextBox ID="TextBox1" CssClass="txtTieptuc" Width="400px" runat="server" MaxLength="150" onkeyup="valid(this,'special')" onblur="valid(this,'special')"></asp:TextBox>
                chỉ với 5$.
                <ajaxToolkit:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" runat="server"
                    FilterMode="InvalidChars" InvalidChars="!@#$%^&amp;*()_-+=\|{}[]&quot;':,&lt;&gt;.?/"
                    TargetControlID="TextBox1">
                </ajaxToolkit:FilteredTextBoxExtender>
                <div id="btn_tieptuc">
                    <asp:Button ID="btnTiep2" CssClass="tieptuc" runat="server" OnClientClick="return checkTT()"
                        Text="Tiếp tục" OnClick="btnTiep2_Click" /></div>
            </div>
            <% }
               else { } %>
        </div>
        <div class="muasam">
            <a href="details.aspx" title="Trở lại trang Dịch vụ">Quay lại trang Dịch vụ</a></div>
    </div>
    <div class="clear">
    </div>
    <div id="sub_content">
        <div id="content_left2">
            <uc2:menu_canhan ID="menu_canhan1" runat="server" />
            <!-- noi dung chinh -->
            <div class="wrap_inbox">
                <div class="warning">
                </div>
                <h2>
                    Hộp thư
                </h2>
                <%--<h3 class="pgTit">Bạn không có tin nhắn mới</h3>--%>
                <table width="100%">
                    <thead class="topics" style="border-top: 1px solid #ddd;">
                        <tr>
                            <td class="nhan">
                                Người Gửi
                            </td>
                            <%--<td class="nhan">Người nhận</td>--%>
                            <td class="ngay" colspan="2">
                                Ngày
                            </td>
                        </tr>
                    </thead>
                    <tbody>
                        <asp:Repeater ID="Repeater1" runat="server">
                            <ItemTemplate>
                                <tr class="entry">
                                    <td class="tenngnhan">
                                        <%#Eval("UserGui2")%>
                                    </td>
                                    <%-- <td class="tenngnhan"><%#Eval("UserNhan2")%></td>--%>
                                    <td class="dongcmcuoicung">
                                        <a href='conversation.aspx?user=<%# Eval("UserGui2") %>&_pm=<%# Eval("idMess") %>'>
                                            <%# Eval("ndlandau") %></a>
                                    </td>
                                    <td class="ngaycmcuoicung">
                                        <%# Eval("NgayGui","{0:dd/MM/yyyy}") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tbody>
                </table>
            </div>
            <!-- ket  thuc noi dung -->
        </div>
    </div>
    <script type="text/javascript">
        var r = {
            'special': /['\\!@#$%^&*\()\{\}\[\]\"\b\/\|\+=_\-<>,;?']/g, ///[\W]/g,
            'quotes': /['\''&'\"']/g,
            'notnumbers': /[^\d]/g,
            'custum': /['\\!@#$%^&*\()\"\b\/\|\:+=_\-<>;.?']/g,
            'email': /['\\!#$%^&*\()\"\b\/\|\:+=_\-<>;?']/g
        }

        function valid(o, w) {
            o.value = o.value.replace(r[w], '');
        }
        function checkTT() {
            if ($('.txtTieptuc').val() == "") {
                alert('Không được để trống ');
                $('.txtTieptuc').focus();
                return false;
            }
        }
    </script>
</asp:Content>
